# -*- coding:utf-8 -*-

# 作者: jianan.chen
# 日期: 2022/5/1 20:53
# 文件名：test -> creenShot
# 作用：封装截图功能并调用

import time

def save_creenshot(Windows):
    now = time.strftime("%Y-%m-%d-%H_%M_%S",time.localtime(time.time()))  #获取当前时间
    pic_path = "../creenshot/" + now + '_screen.png'                      #保存截图到指定路径
    Windows.CaptureToImage(savePath=pic_path)
